FROM openjdk:8-jre

ENV TZ=Asia/Shanghai    \
    APP_NAME=onemap-map \
    JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom"

RUN mkdir -p /onemap/map

WORKDIR /onemap/map

EXPOSE 9004

ADD ./target/onemap-map ./onemap-map.jar

ENTRYPOINT ["java", "-jar", "onemap-map.jar"]

CMD ["--spring.profiles.active=dev"]